package com.face.console.tools;

import org.springframework.beans.BeanUtils;

/**
 * Description:
 * <p>
 * Created by Andy_Lau on 2020/12/24 16:57
 */
public class EntityCope {

    /**
     * 对象cope
     * @param object 源对象
     * @param object1 目标对象
     * @return
     */
    public  Object entity1Toentity2(Object object,Object object1 ){
        try {
            BeanUtils.copyProperties(object,object1);
        }catch (Exception e){
            e.printStackTrace();
        }
        return object1;
    }
}
